import UploadRouter from "@/router/api/upload";
import HomeRouter from "@/router/free/home"
import LoginRouter from "@/router/free/login"

const routers = [HomeRouter, UploadRouter, LoginRouter]

export default function useRouters(app) {
  routers.forEach((router) => {
    app.use(router.routes()).use(router.allowedMethods())
  })
}
